package Server.map;

public abstract class Food {
	
	protected int energy;
	protected int maxEnergy;
	
	public Food(int energy, int maxEnergy){
		this.maxEnergy = maxEnergy;
		this.energy = energy;
	}
	public Food(Food f){
		this.energy = f.energy;
		this.maxEnergy = f.maxEnergy;
	}
	public abstract void update() throws MeatExhaustedException;
	public abstract boolean isMeat();
	public void eaten(){
		this.energy = 0;
	}
}
